package com.bojiu.lawsearch.lawsearch.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * @author: afdiao
 * @Date：2020/3/20 17:44
 * @Description: 用户收藏对象
 */
@ApiModel(value = "人员收藏条例", description = "人员收藏条例的关系对象")
@Table(name = "mst_user_collect")
@Data
public class UserCollect {

    @ApiModelProperty(value = "id", required = false)
    @Column(name = "id")
    private Integer id;

    @ApiModelProperty(value = "人员id", required = false)
    @Column(name = "user_id")
    private Integer user_id;

    @ApiModelProperty(value = "收藏的条例id", required = true)
    @NotNull(message = "收藏的条例id不能为空")
    @Column(name = "rules_id")
    private Integer rules_id;

    @ApiModelProperty(value = "官方标签id", required = true)
    @Column(name = "label_id")
    private Integer labelId;

    @ApiModelProperty(value = "自己填写的标签", required = true)
    @NotNull(message = "收藏信息不能为空")
    @Column(name = "label")
    private String label;
}
